@extends('layouts.app')

@section('content')
    <div class="container">
        <div class="row">
            <div class="panel panel-default">
                <div class="panel-heading">粉丝</div>
                <table class="table table-bordered">
                    <thead>
                        <tr>
                            <th>ID</th>
                            <th>头像</th>
                            <th>微信名称</th>
                            <th>性别</th>
                            <th>区域</th>
                            <th>关注状态</th>
                            <th>时间</th>
                        </tr>
                    </thead>
                    <tbody>
                    @foreach($fansList as $item)
                        <tr>
                            <td>{{ $item->id }}</td>
                            <td><img src="{{ $item->headimgurl }}" height="30" /></td>
                            <td>{{ $item->nickname }}</td>
                            <td>{{ $item->sex==1?"男":"女" }}</td>
                            <td>{{ $item->province }}{{ $item->city }}</td>
                            <td>{{ $item->subscribe==1?"已关注":"未关注" }}</td>
                            <td>{{ date("Y-m-d H:i", $item->subscribetime) }}</td>
                        </tr>
                    @endforeach
                    </tbody>
                </table>
            </div>
            {{ $fansList->links() }}
        </div>
    </div>

@endsection
